import request from "@/untils/request";
//发布房屋所需的条件
export const housesParamsTwo = () => {
  return request({
    url: "/houses/params",
  });
};

//房屋图像上传
export const houseIamge = (data) => {
  return request({
    method: "POST",
    url: "/houses/image",
    data,
    headers: {
      "Content-Type": "multipart/form-data",
    },
  });
};
//发布房源
export const rendUserHouse = (data) => {
  return request({
    method: "POST",
    url: "/user/houses",
    data,
  });
};

//查看已发布房源列表
export const userHousesGuanage = () => {
  return request({
    url: "/user/houses",
  });
};
